package com.ccb.jyzx.expand.tiantouonline.utils;

import org.apache.commons.lang3.StringUtils;

/**
 * @author XIEFEI
 * @date 2019-11-21 19:54
 * @Description
 **/
public class FileExtenUtils {

    /**
     * 获取文件扩展名
     * @param name
     * @return
     */
    public static String getFileExten(String name){
        if (StringUtils.isBlank(name)){
            return "";
        }else {
            return name.lastIndexOf(".")<0?"":name.substring(name.lastIndexOf("."));
        }
    }
}
